﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfCustManager.aspx.cs"
    Inherits="msBsc.WebUi.Custom.wfCustManager" %>

<!DOCTYPE HTML>
<html>
<head id="Head1" runat="server"> 
    <title>我的优速购</title>
    <link rel="shortcut icon" href="/themes/Style1/Image/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/??themes/Style1/StyleQt.css,themes/Style1/CustManager.css" />
    <script src="/??jqPlugin/js/jquery-1.8.3.min.js,js/jBase.js,js/jBPage.js,themes/Style1/jsQt.js,jqPlugin/js/laytpl.js"
        type="text/javascript"></script>
    <!--head fix rgn-->
    <script type="text/javascript">
        $(window).load(function () {
            var gids = "";
            for (var i = 0; i < 10; i++) {
                if (!LS.get("CURR_LOOK_ID_" + i)) {
                    continue;
                }
                if (LS.get("CURR_LOOK_IMG_" + i) == "#" || LS.get("CURR_LOOK_ID_" + i) == null) { continue; }
                gids += gids == "" ? LS.get("CURR_LOOK_ID_" + i) : "," + LS.get("CURR_LOOK_ID_" + i);
            }
            jQuery.loadHtml('/pgajax.axd?GET_LIKE_JSON=1&G_IDS=' + gids).done(function (_sRtjson) {
                var _data = $.parseJSON(_sRtjson);
                var tpl = HtmlUtil.htmlDecode(document.getElementById('like_goods_list').innerHTML);
                laytpl(tpl).render(_data, function (render) {
                    $("#divLikeGList").empty().append(render);
                });
            });
        });
        function updateOrderTableHtml(_data) { 
            var tpl = HtmlUtil.htmlDecode(document.getElementById('order_list_temp').innerHTML);
            laytpl(tpl).render(_data, function (render) {
                $("#myOdTab").empty().append(render);
            });
//            $("#Ratecurrpage").val(_data.page);
//            createPaging('ratepaginator', _data.page, _data.total, function (_topagenum) { doRateToPageNm(_topagenum); });

        };
    </script>
    <style type="text/css">
	.odStepTab{width: 1000px; margin: auto;}
	.odStepTab td{width: 250px; text-align: center;}
	.odsTit td{color: #888; font-weight: bold; height: 35px;}
	.odsDtm td{color: #b5b5b5; height: 45px;} 
	#odTab{width: 660px; border-bottom: 1px solid #e6e6e6;}
	#odTab .odTabTit td{text-align: center; height: 35px; line-height: 35px; border: 1px solid #c4d5e0;
		background-color: #f4f7f9; border-left: none; border-right: none;}
	#odTab .odSepTr td{height: 7px; line-height: 7px;}
	#odTab .odTitTr td{border: 1px solid #e6e6e6; height: 30px; background-color: #f3f3f3; border-bottom: none;}
	#odTab .odItemTr td{border: 1px solid #e6e6e6; border-left: none; 
		text-align: center; padding: 10px 0px; }
	#odTab .odItemTr .td1{border-left: 1px solid #e6e6e6; border-right: none; width: 250px;text-align: left; padding: 0px 10px;}
	#odTab .odItemTr .td1 img{width: 50px; height: 50px; border: 1px solid #e9e9e9;}
	#odTab .odItemTr .td2{width: 250px; vertical-align: top; text-align: left; border-right: none; line-height: 18px;}
	#odTab .odItemTr .td1 .odGoodsAttr{color: #808080;}
	#odTab .odItemTr .td3{width: 110px; border-right: none;}
	#odTab .odItemTr .td4{width: 110px;}
	#odTab .odItemTr .td6{width: 90px;  line-height: 20px;color:#c40000;}
	#odTab .odItemTr .td7{width: 90px; line-height: 20px;}
	#odTab .odItemTr .td8{width: 70px;}
	 
	</style>
</head>
<body>
    <div id="mallPage" class="tms-page mallAct tmall-  page-not-market">
        <!-- -->
        <!--商城通用顶通-->
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderTopHtml()%>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetHeaderLogoHtml("会员中心")%>
        <div id="content" class="content" style=" padding-top: 3px;">
            <div class="page lang-zh-S">
                <div id="mytaobao-panel" class="grid-c2">
                    <div class="col-main" id="J_Col_Main" style="padding-bottom: 0;">
                        <div class="main-wrap">
                            <div id="main-content">
                                <!-- BEGIN col-main -->
                                <div id="userMain" style=" background-color:#fff;">
                                    <div id="uHome_MyInfo"> 
                                            <%=GetCustInfo()%> 
                                    </div>
                                    <div id="uHome_L1_right">
                                        <div class="uHomeTit">
                                            <div class="uHomeTit_txt">
                                                猜你喜欢</div>
                                        </div>
                                        <div class="clear15">
                                        </div>
                                        <div style="height: 115px; padding: 0px 5px;" id="divLikeGList">
                                        </div>
                                    </div>
                                    <div id="uHome_MyOrders">
                                        <div class="uHomeTit">
                                            <div class="uHomeTit_txt">
                                                未完成订单（最多显示3个）</div>
                                        </div>
                                        <div id="myOdTab">
                                        </div> 
                                    </div>
                                    <div id="uHome_L2_right">
                                        <div class="uHomeTit">
                                            <div class="uHomeTit_txt">
                                                账户信息</div>
                                        </div>
                                        <div class="clear15">
                                        </div>
                                        <div style="height: 115px; padding: 0px 5px; padding-left:15px;" id="div1">
                                            <div style="height: 28px; font-size: 14px; line-height: 28px; color: #444;">
                                                <span>账户积分：</span> <span style="color:#c40000;" id="divAccountScore">0</span>
                                            </div> 
                                            <div style="height: 28px; font-size: 14px; line-height: 28px; color: #444;">
                                                <span>账户余额：</span> <span style="color:#c40000;" id="divAccountAmt">0.00</span>
                                            </div>
                                                <div id="uOrderCount" style="margin-left:0px;">
                                            <a href="/c_MyTradingLog.htm" target="_blank">查看积分台帐</a> 
                                            <a href="/c_MyChargeLedgerLog.htm" target="_blank">查看现金台帐</a> 
                                                </div>
                                                <div id="Div2" style="margin-left:0px;">
                                            <a href="/c_TradingPwsSet.htm" target="_blank">设置交易密码</a>  
                                                </div>
                                        </div>
                                    </div>
                                    <div class="clear0">
                                    </div>
                                </div>
                                <!-- end col-main -->
                            </div>
                        </div>
                    </div>
                    <div class="col-sub" id="J_Col_Sub">
                        <%=new msBsc.WebUi.Code.QtHtmlGet().GetCustomMenu()%>
                    </div>
                    <div style="clear:both;"></div>
                </div>
                    <div style="clear:both;"></div>
                <!-- end mytaobao-panel -->
            </div>
                    <div style="clear:both;"></div>
        </div>
                    <div style="clear:both;"></div>
        <%=new msBsc.WebUi.Code.QtHtmlGet().GetFloorHtml()%>
    </div>
    <!-- template -->
    <textarea id="like_goods_list" style="display: none;"> 
    {{#for(var i=0,len=d.rows.length;i < len && i < 4;i++){}}
    <a class="imgLink70 recGoodsItem" target="_blank" href="/c_GoodsView.htm?ID={{d.rows[i].GOODS_ID}}" title="{{d.rows[i].GOODS_NME}}">
						<img src="{{d.rows[i].IMG_URL}}">
						<font class="recPrieOld">￥{{d.rows[i].GOODS_OLD_PRICE}}</font><br>
						<font class="recPrieNow">￥{{d.rows[i].GOODS_STRIKE_PRICE}}</font>
					</a>
    {{#}}}
    </textarea>
    <textarea id="order_list_temp" style="display: none;"> 
    <table id="odTab" border="0" cellpadding="0" cellspacing="0">
					<thead>
						<tr class="odTabTit">
							<td colspan="2">商品</td>
							<td>备注说明</td>
							<td>赠送积分</td>
							<td>实付款(元)</td>
							<td>订单状态</td>
						</tr>
					</thead>
					<tbody>
                    {{#for(var i=0,len=d.rows.length;i < len && i < 3;i++){}}
						<tr class="odSepTr">
							<td colspan="7"></td>
						</tr>
						<tr class="odTitTr">
							<td colspan="7">
								<span style="padding: 0px 10px;">订单编号：{{d.rows[i].ORDER_FORM_NO}}</span>
								<span style="padding: 0px 10px; padding-right: 20px;">成交时间：{{d.rows[i].INITIAL_DT}}</span>
								<a href="/c_ShopView.htm?ID={{d.rows[i].COMM_TENANT_ID}}" target="_blank" class="aLink_blue2">{{d.rows[i].COMM_TENANT_NME}}</a>
							</td>
						</tr>
						
							<tr class="odItemTr">
								<td class="td1" colspan="2">
                                {{#for(var r=0,lenr=d.rows[i].rows.length;r < lenr;r++){}}
									<a href="/c_GoodsView.htm?ID={{d.rows[i].rows[r].GOODS_ID}}" title="{{d.rows[i].rows[r].GOODS_NME}}" style=" margin-left:10px; margin-top:5px; float:left;">
									<span style="float:left;">	<img src="{{d.rows[i].rows[r].IMG_URL}}" class="goods_imgs"/></span>
                                    {{#if(lenr==1){}}
                                    <span   style="float:left;width:200px;height:50px; vertical-align:middle; padding:3px;">{{d.rows[i].rows[r].GOODS_NME}}</span>
                                    {{#}}}
									</a>
                                {{#}}}
								</td>
								<td class="td4">{{d.rows[i].BUY_MEMO}}</td>
								<td class="td5">{{d.rows[i].RCV_SCORE_QTY}}</td>
									<td class="td6" rowspan="1">
												<strong class="">{{d.rows[i].PAYABLE_AMT}}</strong><br>
												<span style="color:#777;">(含运费:{{d.rows[i].LOGISTICS_AMT}})</span><br>
									</td>
									<td class="td7" rowspan="1">
                                    <a href="/c_OrderDetail.htm?ID={{d.rows[i].ORDER_FORM_ID}}" target="_blank" class="aLink_blue2">{{d.rows[i].TRADE_STATUS_TXT}}</a>
									</td>
								
							</tr>
						{{#}}}
					</tbody>
				</table>  
    </textarea>

</body>
</html>
